<template>
  <div>
    <el-row :gutter="20" type="flex">
      <el-col :span="6">
        <el-input
          placeholder="请输入标题"
          v-model="listQueryIn.title"
          clearable
        >
        </el-input>
      </el-col>
      <el-col :span="6">
        <el-button type="custom" @click="refreshList()" plain>搜索</el-button>
        <el-button type="custom" @click="handleAdd()" v-if="$button('751')"
          >新增</el-button
        >
      </el-col>
    </el-row>
  </div>
</template>
<script>
import Bus from '@/utils/bus.js'
export default {
  data() {
    return {
      listQueryIn: {
        title: '',
        page: 1,
      },
    }
  },
  methods: {
    refreshList() {
      Bus.$emit('refreshBannerList', this.listQueryIn)
    },
    handleAdd() {
      Bus.$emit('showDialogBannerAdd')
    },
  },
}
</script>